<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <House></House>



  </div>
  <script src="./vue.js"></script>
  <script>
    const House = {
      template: `
        <div class="house">
          <Dog color="黄" size="大"></Dog>
          <Dog color="黑" size="小"></Dog>          
        </div>
      `,
      
    }

    const Dog = {
      template: `
        <div class="dog">{{size}}{{color}}狗</div>
      `,
      props: ['color', 'size']
    }
    

    Vue.component('House', House)
    Vue.component('Dog', Dog)

    const app = new Vue({
      el: '#app'
    })
  </script>
</body>
</html>